home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 1.toast / pc / sample code / devices and hardware / disks / iso9660 / dialogutils.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  1.5 KB  |  44 lines

  1. /*
  2.     File:        DialogUtils.h
  3.     
  4.     Description:
  5.  
  6.     Author:        ME
  7.  
  8.     Copyright:     Copyright: © 1988-1999 by Apple Computer, Inc.
  9.                 all rights reserved.
  10.     
  11.     Disclaimer:    You may incorporate this sample code into your applications without
  12.                 restriction, though the sample code has been provided "AS IS" and the
  13.                 responsibility for its operation is 100% yours.  However, what you are
  14.                 not permitted to do is to redistribute the source as "DSC Sample Code"
  15.                 after having made changes. If you're going to re-distribute the source,
  16.                 we require that you make it clear in the source that the code was
  17.                 descended from Apple Sample Code, but that you've made changes.
  18.     
  19.     Change History (most recent first):
  20.                 6/24/99    Updated for Metrowerks Codewarror Pro 2.1(KG)
  21.  
  22. */
  23.  
  24. /* Return topLeft point to center standard file dialogs. */
  25. extern Point DU_StdPutWhere(void);
  26. extern Point DU_StdGetWhere(void);
  27.  
  28. /*
  29.  * Pre-load and center ALRT/DLOG template resources. Changes do not affect
  30.  *  the resource file, but if the ALRT/DLOG is created soon after the call
  31.  *  it will use the modified (centered) template in memory. Both routines
  32.  *  return the passed rsrc id to allow calls like:
  33.  *      Alert(DU_CenterALRT(alertID),filter);
  34.  *      GetNewDialog(DU_CenterDLOG(dlogID),dStorage,behindWindow);
  35.  */
  36. extern short DU_CenterALRT(short rsrcId);
  37.  
  38. //Prototypes
  39. Point DU_StdPutWhere(void);
  40. Point DU_StdGetWhere(void);
  41. short DU_CenterALRT(short rsrcId);
  42. short DU_CenterDLOG(short rsrcId);
  43.  
  44. extern short DU_CenterDLOG(short rsrcId);